<?php
/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-26
 * Time: 14:34
 * @description:
 * @Author: yfl
 * @QQ 554665488
 */
$client = new swoole_client(SWOOLE_SOCK_TCP, SWOOLE_SOCK_SYNC);


$client->connect('127.0.0.1', 9502) || exit('connect fail' . $client->errCode);

$client->send(2);

//$response = $client->recv();
//
//echo $response . PHP_EOL;

$client->close();